<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
  <head>
	  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	  <title>test.html</title>
	  <%= javascript_include_tag :defaults %>
	  <%= yield :head %>
	  <script type="text/javascript" charset="utf-8">
		  function ayarla () {
			document.getElementById("yaz").cols = document.getElementById("text_cols").value;
			document.getElementById("yaz").rows = document.getElementById("text_rows").value;
		  }
		  function isle () {
			var say = document.getElementById("e-durum");
			var dizi = new Array();
			for (var i=0; i < say.length; i++) {
			  dizi[i] = document.getElementById("e-durum").options[i].text;
			}
			alert(dizi);
		  }
	  </script>
  </head>
  <body>
  	<br />
	<br />
	<%= text_area_tag "yaz" %>
	<%= form_tag 'frm' do %>
	  <%= text_field_tag "text_cols", nil, :size => "3" %> Genişlik
	  <%= text_field_tag "text_rows", nil, :size => "3" %> Boyu
	  <%= submit_tag "ayarla", :onclick => "ayarla()", :type => "button" %>
	<% end %>
	<br />
	<br />
	<%= form_tag 'frm' do %>
		<%= select_tag "e-durum", "<option>lise</option><option>öl</option><option selected=\"selected\">lisans</option><option>Ylisans</option>".html_safe %>
		<%= submit_tag "göster", :onclick => "isle()", :type => "button" %>
	<% end %>
  </body>
</html>
